home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLR / glrduck / Makefile.6.2 < prev    next >
Makefile  |  1996-11-11  |  3KB  |  141 lines

  1. #!smake
  2. #
  3. # Makefile for iglrduck
  4. # Generated by RapidApp 1.2
  5. #
  6. # This makefile follows various conventions used by SGI makefiles
  7. # See the RapidApp User's Guide for more information
  8. # This makefile supports most common default rules, including:
  9. #   make (or make all):  build the application or library
  10. #   make install:        install the application or library on the local machine
  11. #   make clean:          remove .o's, core, etc.
  12. #   make clobber:        make clean + remove the target application.
  13. # You should be able to customize this Makefile by editing
  14. # only the section between the ##---- markers below.
  15. # Specify additional files, compiler flags, libraries
  16. # by changing the appropriate variables
  17. include $(ROOT)/usr/include/make/commondefs
  18.  
  19. ##---- Start editable code block: definitions
  20.  
  21. ###########################################################
  22. ###########################################################
  23. # Modify the following variables to customize this makefile
  24. ###########################################################
  25. ###########################################################
  26. #
  27. # Local Definitions
  28. #
  29.  
  30. # Add Additional libraries to USERLIBS:
  31.  
  32. USERLIBS= 
  33.  
  34. # While developing, leave OPTIMIZER set to -g.
  35. # For delivery, change to -O2
  36.  
  37. OPTIMIZER= -g
  38. #
  39. # Add any files added outside RapidApp here
  40. #
  41.  
  42. USERFILES = 
  43.  
  44. #
  45. # Add compiler flags here
  46. #
  47.  
  48. USERFLAGS = 
  49.  
  50. ##---- End editable code block: definitions
  51.  
  52. #  The GL library being used, if needed
  53.  
  54. GLLIBS= -lGLR -lGL 
  55. COMPONENTLIBS= -lInventorXt 
  56.  
  57.  
  58.  
  59. #
  60. # The ViewKit stub help library (-lvkhelp) provides a simple 
  61. # implementation of the SGI help API. Changing this to -lhelpmsg
  62. # switches to the full IRIS Insight help system
  63. #
  64.  
  65. HELPLIB= -lvkhelp
  66.  
  67. MESSAGELIBS=
  68. LICENSELIB=
  69.  
  70. EZLIB = -lvkEZ
  71. VIEWKITLIBS= $(MESSAGELIBS) $(EZLIB) -lvk $(HELPLIB) $(LICENSELIB) -lSgm -lXpm
  72.  
  73. # Local C++ options.
  74. # woff 3262 shuts off warnings about arguments that are declared
  75. # but not referenced.
  76.  
  77. WOFF= -woff 3262
  78.  
  79. LCXXOPTS = -nostdinc  -I. -I$(ROOT)/usr/include/CC -I$(ROOT)/usr/include $(SAFLAG) $(WOFF) $(USERFLAGS) 
  80.  
  81. LLDLIBS =  -L$(ROOT)/usr/lib $(USERLIBS) $(COMPONENTLIBS) $(VIEWKITLIBS) $(GLLIBS) -lXm -lXt -lX11 -lgen 
  82.  
  83.  
  84. # SGI makefiles don't recognize all C++ sufixes, so set up
  85. # the one being used here.
  86.  
  87. CXXO3=$(CXXO2:.c++=.o)
  88. CXXOALL=$(CXXO3)
  89.  
  90. #
  91. # Source Files generated by RapidApp. If files are added
  92. # manually, add them to USERFILES
  93. #
  94.  
  95. BUILDERFILES =  main.C\
  96.         glrduckMainWindow.C\
  97.         SoXtGLRRenderArea.C\
  98.         glrduck.C\
  99.         $(NULL)
  100.  
  101. C++FILES = $(BUILDERFILES) $(USERFILES)
  102.  
  103.  
  104. #
  105. # The program being built
  106. #
  107.  
  108. TARGETS=glrduck
  109. APPDEFAULTS=glrduck
  110. default all: $(TARGETS)
  111.  
  112.  
  113. $(TARGETS): $(OBJECTS)
  114.     $(C++F) $(OPTIMIZER) $(OBJECTS) $(LDFLAGS) -o $@
  115. #
  116. # These flags instruct the compiler to output
  117. # analysis information for cvstatic
  118. # Uncoment to enable
  119. # Be sure to also disable smake if cvstatic is used
  120.  
  121. #SADIR= tmp.cvdb
  122. #SAFLAG= -sa,$(SADIR)
  123. #$(OBJECTS):$(SADIR)/cvdb.dbd
  124. #$(SADIR)/cvdb.dbd :
  125. #    [ -d $(SADIR) ] || mkdir $(SADIR)
  126. #    cd $(SADIR); initcvdb.sh
  127.  
  128. #LDIRT=$(SADIR) vista.taf
  129.  
  130.  
  131. #
  132. # To install on the local machine, do 'make install'
  133. #
  134.  
  135. install: all
  136.     $(INSTALL) -F /usr/lib/X11/app-defaults Glrduck
  137.     $(INSTALL) -F /usr/sbin glrduck
  138.  
  139.  
  140. include $(COMMONRULES)
  141.